cmake_minimum_required(VERSION 3.15)
project(muduo)

set(CMAKE_CXX_STANDARD 17)
#让编译生成的可执行文件可以被调试， 生成调试信息
# set(CMAKE_BUILD_TYPE Debug)

set(HEAD_PATH ${PROJECT_SOURCE_DIR}/include)#头文件的路径
set(SRC_PATH ${PROJECT_SOURCE_DIR}/src)#源文件的路径
set(BIN_PATH ${PROJECT_SOURCE_DIR}/bin)#可执行文件的路径
set(APP_NAME muduo) #可执行文件的名字

#添加子目录
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
add_subdirectory(${PROJECT_SOURCE_DIR}/example)